<div class="boxbar nomtop">
    <div class="sort">
    <?php echo $this->translate( 'sortby' ) ?>: 
    	<?php if( $this->sort == 'name' ) { ?>
			<a href="{baseUrl}/shop/show/id/<?php echo $this->id ?>/p/<?php echo $this->parent ?>/sort/name/special/1/sd/<?php echo ( $this->sort_direction == 'asc' ) ? 'desc' : 'asc'; ?>"><?php echo ( $this->sort_direction == 'asc' ) ? '&#9650;' : '&#9660;'; ?><?php echo $this->translate( 'sortby_name' ) ?></a>
		<?php } else { ?>
			<a href="{baseUrl}/shop/show/id/<?php echo $this->id ?>/p/<?php echo $this->parent ?>/sort/name/special/1/sd/asc"><?php echo ( $this->sort_direction == 'asc' ) ? '&#9650;' : '&#9660;'; ?><?php echo $this->translate( 'sortby_name' ) ?></a>
		<?php } ?>    
    <span class="st">|</span>
    
		<?php if( $this->sort == 'price' ) { ?>
			<a href="{baseUrl}/shop/show/id/<?php echo $this->id ?>/p/<?php echo $this->parent ?>/sort/price/special/1/sd/<?php echo ( $this->sort_direction == 'asc' ) ? 'desc' : 'asc'; ?>"><?php echo ( $this->sort_direction == 'asc' ) ? '&#9650;' : '&#9660;'; ?> <?php echo $this->translate( 'sortby_price' ) ?></a>
		<?php } else { ?>
			<a href="{baseUrl}/shop/show/id/<?php echo $this->id ?>/p/<?php echo $this->parent ?>/sort/price/special/1/sd/asc"><?php echo $this->translate( 'sortby_price' ) ?></a>
		<?php } ?>
    </div>
</div>

<?php if( $this->emptyResult ) { ?>
	<div class="content">
		<?php echo $this->translate( 'products_empty_result' ); ?>
	</div>
<?php } else { ?>
		
	<?php $i = 0; foreach( $this->list as $value ) { ?>

		<div class="content<?php echo ( $i > 0 ) ? ' mtop5' : '' ?>">
			<div class="box">
				<div class="column">
					
					<div class="colimg" style="background-image:url(<?php echo $this->File( $value['img'], 195 ) ?>)">
						<a href="{baseUrl}/shop/item/id/<?php echo $value['ps_id'] ?>/special/1/<?php echo $this->Seo( $value['name_' . $this->locale] ) ?>"></a>
					</div>
					
					<div class="coltext">
						<div class="prod">
							<div class="name"><a href="{baseUrl}/shop/item/id/<?php echo $value['ps_id'] ?>/special/1/<?php echo $this->Seo( $value['name_' . $this->locale] ) ?>"><?php echo $value['name_' . $this->locale] ?></a><p class="price"><?php echo $this->PriceSpecial( $value, $this->priceRank, $this->locale, true ) ?></p></div>
							<div class="text">
							 <?php echo $value['description_'.$this->locale] ?>
							</div>
							<div class="avail">
									<img src="{baseUrl}/public/images/bgreen.png" alt=""><?php echo $this->translate( 'product_available' ) ?>
									<a class="button" href="{baseUrl}/shop/basket/add/<?php echo $value['ps_id'] ?>/dem/10000000/items/1/special/1" ><?php echo $this->translate( 'add_to_basket' ) ?></a>

							</div>
						</div> 
					</div>
				<div class="clr"></div>
				</div>
				<div class="end"></div>
			</div>
			
			
		</div>

	<?php $i++; } ?>
			<div class="clr"></div>
<?php echo $this->render('global/pager_service.phtml'); ?>

<?php } ?>